package com.baidu.location;

import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.HttpParams;

final class g$3 extends Thread
{
  public void run()
  {
    try
    {
      HttpPost localHttpPost = new HttpPost(j.jdMethod_do());
      ArrayList localArrayList = new ArrayList();
      for (int i = 0; i < g.jdMethod_int().size(); i++)
        localArrayList.add(new BasicNameValuePair("cldc[" + i + "]", (String)g.jdMethod_int().get(i)));
      localHttpPost.setEntity(new UrlEncodedFormEntity(localArrayList, "utf-8"));
      DefaultHttpClient localDefaultHttpClient = new DefaultHttpClient();
      localDefaultHttpClient.getParams().setParameter("http.connection.timeout", Integer.valueOf(g.jdMethod_goto()));
      localDefaultHttpClient.getParams().setParameter("http.socket.timeout", Integer.valueOf(g.jdMethod_goto()));
      if (localDefaultHttpClient.execute(localHttpPost).getStatusLine().getStatusCode() == 200)
      {
        g.jdMethod_int().clear();
        g.a(null);
      }
      return;
    }
    catch (Exception localException)
    {
    }
    finally
    {
      g.jdMethod_do(false);
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.baidu.location.g.3
 * JD-Core Version:    0.6.2
 */